
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent">
            <li ><label><@label key='supplier.C,code.C,colon'>供应商编号：</@label></label> <input type="text" name="supplierCode" value="${condition.supplierCode!''}"/></li>
            <li ><label><@label key="supplier.C,description.C,colon">描述：</@label></label> <input type="text" name="supplierText" value="${condition.supplierText!''}"/></li>
            <li ><label><@label key="email.C,colon">电子邮件：</@label></label> <input type="text" name="email" value="${condition.email!''}"/></li>
        </ul>
        <ul class="searchContent">
            <li ><label><@label key='contacts.C,colon'>联系人：</@label></label> <input type="text" name="contact" value="${condition.contact!''}"/></li>
            <li ><label><@label key="telephone.C,colon">电话：</@label></label> <input type="text" name="telephone" value="${condition.telephone!''}"/></li>
            <li ><label><@label key="address.C,colon">地址：</@label></label> <input type="text" name="address" value="${condition.address!''}"/></li>
            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="supplier_add" labelKey="add.B" defalutName="新增">
            <li><a class="add"  mask="true" width="650" height="300" href="${rc.getContextPath()}/manage/supplier/addSupplier?navTabId=${navTabId!''}" target="dialog" title="<@label key='add.B'>新增</@label>"><span><@label key='add.B'>新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="supplier_edit" labelKey="edit.B" defalutName="修改">
            <li><a class="edit"  mask="true" width="650" height="300" href="${rc.getContextPath()}/manage/supplier/modifySupplier?supplierCode={supplier_id}&navTabId=${navTabId!''}" target="dialog" title="<@label key='edit.B'>修改</@label>"><span><@label key='edit.B'>修改</@label></span></a></li>
            </@buttonRight>
            <li><a class="icon" target="dialog" mask="true" resizable="false" width="650" height="300" rel="viewSupplier"
            href="${rc.getContextPath()}/manage/supplier/viewSupplier?supplierCode={supplier_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li>
            <@buttonRight menuCode="supplier_delete" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/supplier/deleteSupplier?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelSupplier.M'>确认要删除选择的供应商吗？</@label>"><span><@label key="delete.B">删除</@label></span>
                </a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="160%" layoutH="164">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="30"><@label key="serialNumber.C">序号</@label></th>
                <th width="120" orderField="supplierCode" <#if (page.orderField?? && page.orderField == 'supplierCode')>class="${page.orderDirection!''}"</#if>><@label key='supplier.C,code.C'>供应商编号</@label></th>
                <th width="120" ><@label key='supplier.C,description.C'>供应商描述</@label></th>
                <th width="100"><@label key='contacts.C'>联系人</@label></th>
                <th width="100"><@label key='telephone.C'>联系电话</@label></th>
                <th width="80"><@label key='email.C'>邮件</@label></th>
                <th width="80"><@label key='address.C'>地址</@label></th>
                <th width="50" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as supplier>
            <tr target="supplier_id" rel="${supplier.supplierCode!''}">
                <td><input name="ids" value="${supplier.supplierCode!''}" type="checkbox"></td>
                <td>${page.startRow + supplier_index}</td>
                <td>${supplier.supplierCode!''}</td>
                <td>${supplier.supplierText!''}</td>
                <td>${supplier.contact!''}</td>
                <td>${supplier.telephone!''}</td>
                <td>${supplier.email!''}</td>
                <td>${supplier.address!''}</td>
                <td><#if (supplier.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
                <td>${supplier.createUser!''}</td>
                <td>${(supplier.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${supplier.modifyUser!''}</td>
                <td>${(supplier.modifyDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
            </tr>
        </#list>
        <#else>
        <tr target="supplier_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="supplier_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>